/*
 * Copyright (C) 2011, 2012 Moravská zemská knihovna v Brně / Moravian Library in Brno
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package cz.mzk.oai.provider.response.listRequests;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 *
 * @author Martin Řehánek <rehan at mzk.cz>
 */
public class ResumptionTokens {

    private final Map<String, RequestSequence> map = new HashMap<String, RequestSequence>();

//    private Map<String, RequestSequence> synchronizedMap(){
//        return map;
//    }
    public synchronized Collection<RequestSequence> values() {
        return map.values();
    }

    public synchronized Set<String> keySet() {
        return map.keySet();
    }

    public synchronized RequestSequence get(String key) {
        return map.get(key);
    }

    public synchronized RequestSequence put(String key, RequestSequence value) {
        return map.put(key, value);
    }
}
